/* div {
    width: 100%;
    height: 100%;
    position: absolute;
    top:0;
    background-color: red;
} */

/* div.div1 {
    width: 100px;
    height: 50px;
    position: absolute;
    top:50%;
    left:50%;
    margin-top:-25px;
    margin-left:-50px;
    background-color: white; */
/* } */

.div1 {
    background-color:black;
    position: absolute;
    top:0;
    right:0;
    left:0;
    bottom: 0;
    opacity: 0.2;

}

.div2 {
    height: 200px;
    width: 300px;
    background-color: orange;
    position:absolute;
    top:50%;
    left:50%;
    margin-left:-150px;
    margin-top:-100px;
}